Skip to content

add check to sp_invmod_mont_ct to make sure the#6426

Merged
SparkiDev merged 1 commit intowolfSSL:masterfrom
jpbland1:invariant-mp-size
May 21, 2023
Merged

add check to sp_invmod_mont_ct to make sure the#6426
SparkiDev merged 1 commit intowolfSSL:masterfrom
jpbland1:invariant-mp-size

Conversation

@jpbland1
Copy link
Copy Markdown
Contributor

result integer can hold the range of the modulus

Description

sp_invmod_mont_ct puts its result into into an sp_int r but doesn't check that r can hold the full range of the result. I've added this check

Fixes zd# 16129

Testing

Tested with Guido's (the big G, the fuzz god) reproducer code

Checklist

  • added tests
  • updated/added doxygen
  • updated appropriate READMEs
  • Updated manual and documentation

@jpbland1 jpbland1 requested a review from SparkiDev May 19, 2023 00:37
@jpbland1 jpbland1 marked this pull request as ready for review May 19, 2023 00:37
@SparkiDev
Copy link
Copy Markdown
Contributor

retest this please

result integer can hold the range of the modulus
@jpbland1 jpbland1 force-pushed the invariant-mp-size branch from 5bd7a73 to 344c333 Compare May 19, 2023 14:49
@SparkiDev SparkiDev merged commit d8e4c78 into wolfSSL:master May 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants